﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using wms_wpf.Apiservice;
using wms_wpf.InPut;

namespace wms_wpf.DialogView
{
    /// <summary>
    /// Dialog9.xaml 的交互逻辑
    /// </summary>
    public partial class Dialog9 : UserControl
    {
        public Dialog9(string Id_NeetOutMaterial)
        {
            InitializeComponent();
            baseService =new BaseService();
            this.Id_NeetOutMaterial = Id_NeetOutMaterial;
         
        }
        public string Id_NeetOutMaterial;
        private readonly IBaseService baseService;

        private async void UpdateNeetQutity_Click(object sender, RoutedEventArgs e)
        {
            InPut_BaseService16 InPut = new InPut_BaseService16();
            InPut.Id_NeetOutMaterial =Guid.Parse( Id_NeetOutMaterial);
            InPut.NeetQuantity = Qutity.Text;
            if (string.IsNullOrEmpty(InPut.NeetQuantity)) return;
            await baseService.UpdateNeetQuantity(InPut);
        }

    }
}
